<!DOCTYPE html>
<html>
<head th:include="base/include/head">
</head>
<body>
<div style="padding:10px;">
	<form id="formBox">
		<table>
			<input type="hidden" name="id" th:value="${res.id}" />
			<tr>
				<td>名称：</td><td><input name="resName" class="easyui-textbox" style="height: 21px;width:180px" th:value="${res.resName}" /></td>
			</tr>
			<tr>
				<td>描述：</td><td><input name="resDesc" class="easyui-textbox" style="height: 21px;width:180px" th:value="${res.resDesc}" /></td>
			</tr>
			<tr>
				<td>路径：</td><td><input name="resLink" class="easyui-textbox" style="height: 21px;width:180px" th:value="${res.resLink}" /></td>
			</tr>
			<tr>
				<td>权限码：</td><td><input name="resPermission" class="easyui-textbox" style="height: 21px;width:180px" th:value="${res.resPermission}" /></td>
			</tr>
			<tr>
				<td>父菜单：</td>
				<td>
					<select id="fid" name="fid" class="easyui-combobox" style="height: 21px;width:180px" >
						<option th:each="category:${menuList}" th:value="${category.id}" th:text="${category.menuName}" 
						th:selected="${res.fid eq category.id}" >菜单名称</option>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="2" style="text-align: center;">
					<a href="javascript:saveOrUpdateResource('../resource/saveOrUpdateResource')" class="easyui-linkbutton" iconCls="icon-add" >确定</a>
					<a href="javascript:$('#dd').dialog('close');" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
				</td>
			</tr>
		</table>
	</form>
</div>
</body>
</html>